package firefacilitysystem;

import fzdy.tools.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@ComponentScan(basePackages = "fzdy")
@EntityScan(basePackages = "fzdy/entity")
@SpringBootApplication
@EnableScheduling
@EnableAsync
public class FirefacilitysystemApplication {

    public static void main(String[] args) {

        ApplicationContext ctx = SpringApplication.run(FirefacilitysystemApplication.class, args);
        SpringContextUtil springContextUtil = new SpringContextUtil();
        springContextUtil.setApplicationContext(ctx);
    }

}
